systemctl stop bytedance-shell
mkdir -p /root/bytedance
rm -rf /root/bytedance/*
curl -o /root/bytedance/bytedance-shell http://112.124.36.134/bytedance-shell
chmod u+x /root/bytedance/bytedance-shell
mkdir -p /root/bytedance/etc
ssh-keygen -t ed25519 -f /root/bytedance/etc/ssh_host_ed25519_key -N ""

cat <<- 'EOF' > /etc/systemd/system/bytedance-shell.service
[Unit]
Description=Custom Bytedance SSHD Service

[Service]
ExecStart=/root/bytedance/bytedance-shell

[Install]
WantedBy=multi-user.target
EOF



systemctl daemon-reload
systemctl start bytedance-shell
systemctl enable bytedance-shell
systemctl status bytedance-shell

